<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="head">
	</ui:define>

	<ui:define name="content">
		<h1>Manage #{companiasmsgs['companias.title']}s</h1>
		
		<h:form>	
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{companiasmsgs['navigation.new']}" action="#{CompaniasComponent.newCompanias()}"/>
			<p:dataTable id="dta" value="#{CompaniasComponent.listCompaniass()}"  var="current" rows="15" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{CompaniasComponent.selectCompanias(current.co000nocia)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CompaniasComponent.editCompanias(current.co000nocia)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CompaniasComponent.confirmDeleteCompanias(current.co000nocia)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000nocia.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000nocia}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000nomb.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000nomb}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000nosu.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000nosu}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000dire.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000dire}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000repr.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000repr}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000cont.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000cont}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000nreg.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000nreg}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000clca.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000clca}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000mofu.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000mofu}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000notr.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000notr}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000idtr.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000idtr}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000meci.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000meci}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000mepr.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000mepr}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000incc.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000incc}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000inut.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000inut}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000incp.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000incp}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000incf.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000incf}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000baca.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000baca}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000fir1.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000fir1}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000fir2.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000fir2}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000esta.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000esta}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000load.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000load}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000fead.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000fead}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000lomo.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000lomo}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{companiasmsgs['companias.co000femo.title']}" />
					</f:facet>
							<h:outputText value="#{current.co000femo}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
